package com.project.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.project.bean.SellProductBean;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;


@Mapper
public interface ISellProductMapper{
    /**
     * 按照销售id删除销售商品明细
     * @param sellId 采购id
     */
    public void delInfoBySellId(int sellId);

    /**
     * 按销售订单id添加商品明细
     * @param id 销售订单id
     * @param infoList 销售商品明细集合
     */
    public void addInfoList(@Param("id") int id , @Param("infoList") List<SellProductBean> infoList);

}
